package com.elite.service;

import com.elite.dao.FileGoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by hbl on 2017/2/10.
 */
@Service("FileGoodsService")
public class FileGoodsServiceImpl implements FileGoodsService {

    @Autowired
    FileGoodsMapper fileGoodsMapper;

    @Override
    public List selectAllByGoodsId(Integer goodsId) {
        return fileGoodsMapper.selectByGoodsId(goodsId);
    }

    @Override
    public void deleteByGoodsId(Integer goodsId) {
        fileGoodsMapper.deleteByGoodsId(goodsId);
    }
}
